$(function(){
console.log($('.type').data('typeid'))
if($('.car_type').val()>4&&$('.car_type').val()<8){
		$('.seating').val("")
	$('.seating').css('display','block')

	myScroll.refresh();
	}

$('.seating').val(5)
	$('.keep').on('click',function(){
		sendForm($(this),1); 
		
	});
	$('.back').on('click',function(){
		window.history.back()
	});
	$('.car_type').on('change',function(){
		if($(this).val()>4&&$(this).val()<8){
			$('.seating').val("")
		$('.seating').css('display','block')
	
		myScroll.refresh();
		}else{
			if($(this).val()==2||$(this).val()==3||$(this).val()==4){
				$('.seating').val(5)
			}else if($(this).val()==9){
				$('.seating').val(7)
			}
			console.log($('.seating').val())
			$('.seating').css('display','none')
		}
	})
})

